package com.ruoyi.ams.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 盘点明细对象 ams_asset_inventory_detail
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetInventoryDetail
{
    private static final long serialVersionUID = 1L;
    /** 盘点明细表主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long inventoryDetailId;
    /** 盘点单表主键 */
    @Excel(name = "盘点单表主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点单表主键")
    private Long inventoryId;
    /** 盘点资产主键 */
    @Excel(name = "盘点资产主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点资产主键")
    private Long assetId;
    /** 盘点状态 */
    @Excel(name = "盘点状态")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点状态")
    private String status;
    /** 盘点结果 */
    @Excel(name = "盘点结果")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点结果")
    private String result;
    /** 盘点人主键 */
    @Excel(name = "盘点人主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点人主键")
    private Long inventoryUserId;
    /** 盘点时间 */
    @Excel(name = "盘点时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "盘点时间")
    private Long inventoryTime;
    /** 新使用人主键 */
    @Excel(name = "新使用人主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新使用人主键")
    private Long newUserId;
    /** 新使用公司主键 */
    @Excel(name = "新使用公司主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新使用公司主键")
    private Long newUseCompanyId;
    /** 新使用部门主键 */
    @Excel(name = "新使用部门主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新使用部门主键")
    private Long newUseDeptId;
    /** 新区域主键 */
    @Excel(name = "新区域主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新区域主键")
    private Long newAddressId;
    /** 新存放地点 */
    @Excel(name = "新存放地点")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新存放地点")
    private String newDepositAddress;

    @TableField(exist = false)
    private  String code;
    public static final String INVENTORY_DETAIL_ID="inventory_detail_id";
    public static final String INVENTORY_ID="inventory_id";
    public static final String ASSET_ID="asset_id";
    public static final String STATUS="status";
    public static final String RESULT="result";
    public static final String INVENTORY_USER_ID="inventory_user_id";
    public static final String INVENTORY_TIME="inventory_time";
    public static final String NEW_USER_ID="new_user_id";
    public static final String NEW_USE_COMPANY_ID="new_use_company_id";
    public static final String NEW_USE_DEPT_ID="new_use_dept_id";
    public static final String NEW_ADDRESS_ID="new_address_id";
    public static final String NEW_DEPOSIT_ADDRESS="new_deposit_address";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryDetailId", getInventoryDetailId())
            .append("inventoryId", getInventoryId())
            .append("assetId", getAssetId())
            .append("status", getStatus())
            .append("result", getResult())
            .append("inventoryUserId", getInventoryUserId())
            .append("inventoryTime", getInventoryTime())
            .append("newUserId", getNewUserId())
            .append("newUseCompanyId", getNewUseCompanyId())
            .append("newUseDeptId", getNewUseDeptId())
            .append("newAddressId", getNewAddressId())
            .append("newDepositAddress", getNewDepositAddress())
            .toString();
    }
}
